<div class="editor">
	<input type="hidden" name="sid" value="<{$sid}>"/>
	<span>当前学生：</span><span><{$editorInfo.stname}></span><span>专业：</span><span><{$editorInfo.major}></span><span>班级：</span><span><{$editorInfo.class}></span>
</div>
<hr>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table table-bordered table-hover table-striped">
  <tr>
    <td height="48" align="right" valign="middle">申请入党时间:</td>
    <td align="center" valign="middle"><input type="text" name="sqrdsj" size="20" value="<{$partyInfo.sqrdsj}>"/></td>
  </tr>
  <tr>
    <td height="48" align="right" valign="middle">党校开始时间：</td>
    <td align="center" valign="middle"><input type="text" name="dxkssj" size="20" value="<{$partyInfo.dxkssj}>"/></td>
  </tr>
  <tr>
    <td height="48" align="right" valign="middle">党校毕业时间：</td>
    <td align="center" valign="middle"><input type="text" name="dxbysj" size="20" value="<{$partyInfo.dxbysj}>"/></td>
  </tr>
  <tr>
    <td height="48" align="right" valign="middle">重点培养时间：</td>
    <td align="center" valign="middle"><input type="text" name="zdpysj" size="20" value="<{$partyInfo.zdpysj}>"/></td>
  </tr>
  <tr>
    <td height="48" align="right" valign="middle">预备党员批准时间：</td>
    <td align="center" valign="middle"><input type="text" name="ybdypzsj" size="20" value="<{$partyInfo.ybdypzsj}>"/></td>
  </tr>
  <tr>
    <td height="48" align="right" valign="middle">转正时间</td>
    <td align="center" valign="middle"><input type="text" name="zzsj" size="20" value="<{$partyInfo.zzsj}>"/></td>
  </tr>
</table>
<center><button class="btn btn-large btn-primary" name="submitParty">提交数据</button></center>
<script>
	var method1="<{$method}>";
	var sid=document.getElementsByName("sid")[0];
	var party=new PureAjax();
	var submitParty=document.getElementsByName("submitParty")[0];
	submitParty.onclick=function(){
		party.post({
			dataType:"text",
			data:{
				sqrdsj:(document.getElementsByName("sqrdsj")[0]).value,
				dxbysj:(document.getElementsByName("dxbysj")[0]).value,
				zdpysj:(document.getElementsByName("zdpysj")[0]).value,
				ybdypzsj:(document.getElementsByName("ybdypzsj")[0]).value,
				zzsj:(document.getElementsByName("zzsj")[0]).value,
				dxkssj:(document.getElementsByName("dxkssj")[0]).value,
				submit:"yes",
				method:method1
			},
			url:URL+"Editor/createNewParty/sid/"+sid.value,
			success:function(data){
				alert(data);
			}
		});	
		
	};
</script>